package org.aswing.ext;

extern class GridList extends org.aswing.JViewport, implements org.aswing.event.ListDataListener {
	function new(?p0 : org.aswing.ListModel, ?p1 : GridListCellFactory, ?p2 : Int, ?p3 : Int) : Void;
	function addSelectionInterval(p0 : Int, p1 : Int, ?p2 : Bool) : Void;
	function addSelectionListener(p0 : Dynamic, ?p1 : Int, ?p2 : Bool) : Void;
	function clearSelection(?p0 : Bool) : Void;
	function contentsChanged(p0 : org.aswing.event.ListDataEvent) : Void;
	function getAnchorSelectionIndex() : Int;
	function getCellByIndex(p0 : Int) : GridListCell;
	function getColumns() : Int;
	function getHGap() : Int;
	function getLeadSelectionIndex() : Int;
	function getModel() : org.aswing.ListModel;
	function getRows() : Int;
	function getSelectedIndex() : Int;
	function getSelectedIndices() : Array<Dynamic>;
	function getSelectedValue() : Dynamic;
	function getSelectedValues() : Array<Dynamic>;
	function getSelectionMode() : Int;
	function getSelectionModel() : org.aswing.ListSelectionModel;
	function getTileHeight() : Int;
	function getTileWidth() : Int;
	function getVGap() : Int;
	function intervalAdded(p0 : org.aswing.event.ListDataEvent) : Void;
	function intervalRemoved(p0 : org.aswing.event.ListDataEvent) : Void;
	function isAutoScroll() : Bool;
	function isSelectable() : Bool;
	function isSelectedIndex(p0 : Int) : Bool;
	function isSelectionEmpty() : Bool;
	function removeSelectionInterval(p0 : Int, p1 : Int, ?p2 : Bool) : Void;
	function scrollToView(p0 : Dynamic) : Void;
	function scrollToViewIndex(p0 : Int) : Void;
	function selectAll(?p0 : Bool) : Void;
	function setAutoScroll(p0 : Bool) : Void;
	function setColsRows(p0 : Int, p1 : Int) : Void;
	function setColumns(p0 : Int) : Void;
	function setHGap(p0 : Int) : Void;
	function setHolderLayout(p0 : GridListLayout) : Void;
	function setListData(p0 : Array<Dynamic>) : Void;
	function setModel(p0 : org.aswing.ListModel) : Void;
	function setRows(p0 : Int) : Void;
	function setSelectable(p0 : Bool) : Void;
	function setSelectedIndex(p0 : Int, ?p1 : Bool) : Void;
	function setSelectedIndices(p0 : Array<Dynamic>, ?p1 : Bool) : Void;
	function setSelectedValue(p0 : Dynamic, ?p1 : Bool) : Void;
	function setSelectedValues(p0 : Array<Dynamic>, ?p1 : Bool) : Void;
	function setSelectionInterval(p0 : Int, p1 : Int, ?p2 : Bool) : Void;
	function setSelectionMode(p0 : Int) : Void;
	function setSelectionModel(p0 : org.aswing.ListSelectionModel) : Void;
	function setTileHeight(p0 : Int) : Void;
	function setTileWidth(p0 : Int) : Void;
	function setVGap(p0 : Int) : Void;
	private var autoScroll : Bool;
	private var cellFactory : GridListCellFactory;
	private var cells : org.aswing.util.Vector;
	private var gridLayout : GridListLayout;
	private var model : org.aswing.ListModel;
	private var selectable : Bool;
	private var selectionModel : org.aswing.ListSelectionModel;
	private var tileHeight : Int;
	private var tileHolder : GridCellHolder;
	private var tileWidth : Int;
	private function addCellToContainer(p0 : GridListCell, p1 : Int) : Void;
	private function addHandlersToCell(p0 : org.aswing.Component) : Void;
	private function createHolder(p0 : Int, p1 : Int) : org.aswing.Container;
	private function createItemEventObj(p0 : Dynamic, p1 : String, p2 : flash.events.MouseEvent) : GridListItemEvent;
	private function createNewCell() : GridListCell;
	private function removeCellFromeContainer(p0 : GridListCell) : Void;
	private function removeHandlersFromCell(p0 : org.aswing.Component) : Void;
	static var MULTIPLE_SELECTION : Int;
	static var SINGLE_SELECTION : Int;
}
